Configure Route Redistribution to OSPFv3 in GRT Mode
Configure a redistribute entry to announce certain routes into the OSPFv3 domain, including static routes, direct routes, RIPng, OSPF routes, IS-IS routes, or Border Gateway Protocol (BGP) routes. Optionally, use a route policy to control the redistribution of routes.
Note
RIPng is not virtualized, therefore RIPng redistribution in OSPFv3 works only in GRT.
Before you begin
-
Enable OSPFv3 globally.
-
Ensure that a route policy exists.
-
Ensure that you set OSPFv3 as the boundary router.
Note
-
For a redistribute policy (OSPFv3) using a route-map, even if a particular route is not explicitly allowed in the redistribution policy or out-policy with the route-map, then the route is implicitly denied.
-
In order to permit or deny only explicit routes, configure a policy with additional sequences, where, the last sequence permits all routes that are not explicitly permitted or denied.
-
You configure OSPF on a VRF instance the same way you configure the GlobalRouter, except that you must use VRF Router configuration mode and replace ipv6 with ipv6 ospf.
Procedure
Example
Redistribute static routes from the GRT to OSPF.
Create the redistribution instance, apply a route policy, enable redistribution, and apply the redistribution.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#router ospf Switch:1(config-ospf)#ipv6 redistribute static WARNING: Routes will not be injected until apply command is issued after enable command Switch:1(config-ospf)#ipv6 redistribute static route-map policy1 Switch:1(config-ospf)#ipv6 redistribute static enable Switch:1(config-ospf)#exit Switch:1(config)#ipv6 ospf apply redistribute static Switch:1(config)#show ipv6 ospf redistribute ==================================================================================== OSPFv3 Redistribute List - GlobalRouter ==================================================================================== SRC MET MTYPE ENABLE RPOLICY ------------------------------------------------------------------------------------ STAT 0 type2 TRUE policy1
Variable Definitions
Use the data in the following table to use the ipv6 redistribute command.
Variable |
Value |
---|---|
enable |
Enables the OSPF route redistribution instance. |
metric <0–65535> |
Configures the metric to apply to redistributed routes. |
metric-type <type1|type2> |
Specifies a type 1 or a type 2 metric. For metric type 1, the cost of the external routes is equal to the sum of all internal costs and the external cost. For metric type 2, the cost of the external routes is equal to the external cost alone. |
route-map WORD<0-64> |
Configures the route policy to apply to redistributed routes. |
<bgp|direct|isis|rip|static> |
Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, or static. |
Use the data in the following table to use the ipv6 ospf apply redistribute command.
Variable |
Value |
---|---|
vrf WORD<1-16> |
Specifies the VRF instance. |
<bgp|direct|isis|rip|static> |
Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, or static. |